package com.zhuangwei.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取配置文件第二种方式
 * @author LeviCoder
 * @create 2019-01-27 15:08
 */
@SuppressWarnings("ConfigurationProperties")
@Data
@ConfigurationProperties(prefix = "application.author")
@Component
public class AuthorConfig
{
    private String name;
    private String webstie;
    private String qq;
    private String phoneNumber;
}
